//
//  Calendar.swift
//  YOKO
//
//  Created by 鲁浩 on 16/5/10.
//  Copyright © 2016年 15Tec. All rights reserved.
//

import Foundation
import RealmSwift

class Calendar: Object {
    
    dynamic var localId = Int(NSDate().timeIntervalSince1970*1000)
    
    override static func primaryKey() -> String? {
        return "localId"
    }
    
    dynamic var uuid = ""
    
    dynamic var accessRole = 0
    
    dynamic var color = ""
    
    dynamic var defaultReminders = ""
    
    dynamic var deleted = false
    
    dynamic var descriptions = ""
    
    dynamic var etag = ""
    
    dynamic var hidden = false
    
    dynamic var primary = false
    
    dynamic var location = ""
    
    dynamic var notificationSettings = ""
    
    dynamic var selected = false
    
    dynamic var summary = ""
    
    dynamic var summaryOverride = ""
    
    dynamic var timezone = ""
    
    dynamic var updateTime = NSDate()
    
    // 必须
    dynamic var createTime = NSDate()
    
    dynamic var version = -1
    
    dynamic var sync_block = 0
    
    dynamic var calendarId = ""
    
    dynamic var source = ""
    
    dynamic var category = ""
    
    dynamic var isLocal = false
    
}
